package com.yoyo.itravel.service;

import com.yoyo.itravel.bean.PlanType;
import com.yoyo.itravel.exceptions.PlanTypeException;

import java.util.List;

/**
 * @author liuchaojie
 * @version 1.0
 * @Description 机型操作服务层接口【服务层】
 * @date 2020/6/18 19:00
 */
public interface IPlanTypeService {
    /**
     * 新增机型信息
     * @param planType
     * @return
     * @throws PlanTypeException
     */
    boolean addPlanType(PlanType planType) throws PlanTypeException;

    /**
     * 删除一条机型信息
     * @param planTypeId
     * @return
     * @throws PlanTypeException
     */
    boolean deleteByPlanType(String planTypeId) throws PlanTypeException;

    /**
     * 查找所有机型信息
     * @return
     * @throws PlanTypeException
     */
    List<PlanType> selectAll() throws PlanTypeException;

    /**
     * 修改根据机型Id机型信息
     * @param planType
     * @return
     * @throws PlanTypeException
     */
    boolean changePlanType(PlanType planType) throws PlanTypeException;
}
